package cn.redragon.soa.common.exception;

import lombok.Getter;

/**
 * MQ event exception is defined for error happens during MQ event sending and receiving.
 */
@Getter
public class AmqpException extends BaseException {

    public AmqpException(String code, String message) {
        super(code, message);
    }

    public AmqpException(BaseError error, Object... params) {
        this(error.getCode(), error.withParams(params));
    }
}